package com.leetcode;

import java.util.Scanner;

/**
 * @author Dennis Li
 * @date 2020/9/7 21:57
 */
public class LengthOfLastString_1 {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);

        String str = null;

        while (scanner.hasNext()){
            str = scanner.next();
        }

        System.out.println(str.length());
    }
}
